<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{userBean.id}"/>
		<f:event type="preRenderView" listener="#{userBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View User"/>

	<ui:define name="header">
		User
	</ui:define>

	<ui:define name="subheader">
		View existing User
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="userBeanUserName" value="Name:"/>
			<h:outputText id="userBeanUserName" value="#{userBean.user.name}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserFamilName" value="Famil Name:"/>
			<h:outputText id="userBeanUserFamilName" value="#{userBean.user.familName}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserUserName" value="User Name:"/>
			<h:outputText id="userBeanUserUserName" value="#{userBean.user.userName}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserPassword" value="Password:"/>
			<h:outputText id="userBeanUserPassword" value="#{userBean.user.password}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserHint" value="Hint:"/>
			<h:outputText id="userBeanUserHint" value="#{userBean.user.hint}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCreatedBy" value="Created By:"/>
			<h:outputText id="userBeanUserCreatedBy" value="#{userBean.user.createdBy}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCreatedOn" value="Created On:"/>
			<h:outputText id="userBeanUserCreatedOn" value="#{userBean.user.createdOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="userBeanUserLocation" value="Location:"/>
			<h:outputText id="userBeanUserLocation" value="#{userBean.user.location}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserTableId" value="Table Id:"/>
			<h:outputText id="userBeanUserTableId" value="#{userBean.user.tableId}"/>
			<h:outputText/>
			<h:outputLabel for="userBeanUserAddresses" value="Addresses:"/>
			<h:dataTable id="userBeanUserAddresses" styleClass="data-table" value="#{forgeview:asList(userBean.user.addresses)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/address/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserPhoneNos" value="Phone Nos:"/>
			<h:dataTable id="userBeanUserPhoneNos" styleClass="data-table" value="#{forgeview:asList(userBean.user.phoneNos)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Phone No"/>
					</f:facet>
					<h:link outcome="/phoneNo/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPhoneNo" value="#{_item.phoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserAddresses1" value="Addresses_1:"/>
			<h:dataTable id="userBeanUserAddresses1" styleClass="data-table" value="#{forgeview:asList(userBean.user.addresses_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/address/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCustomersForModifiedBy" value="Customers For Modified By:"/>
			<h:dataTable id="userBeanUserCustomersForModifiedBy" styleClass="data-table" value="#{forgeview:asList(userBean.user.customersForModifiedBy)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserStocksForModifiedBy" value="Stocks For Modified By:"/>
			<h:dataTable id="userBeanUserStocksForModifiedBy" styleClass="data-table" value="#{forgeview:asList(userBean.user.stocksForModifiedBy)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/stock/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserStocksForModifiedBy1" value="Stocks For Modified By_1:"/>
			<h:dataTable id="userBeanUserStocksForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(userBean.user.stocksForModifiedBy_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/stock/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserStocksForCreatedBy" value="Stocks For Created By:"/>
			<h:dataTable id="userBeanUserStocksForCreatedBy" styleClass="data-table" value="#{forgeview:asList(userBean.user.stocksForCreatedBy)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/stock/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCustomersForCreatedby" value="Customers For Createdby:"/>
			<h:dataTable id="userBeanUserCustomersForCreatedby" styleClass="data-table" value="#{forgeview:asList(userBean.user.customersForCreatedby)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCustomersForCreatedby1" value="Customers For Createdby_1:"/>
			<h:dataTable id="userBeanUserCustomersForCreatedby1" styleClass="data-table" value="#{forgeview:asList(userBean.user.customersForCreatedby_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserCustomersForModifiedBy1" value="Customers For Modified By_1:"/>
			<h:dataTable id="userBeanUserCustomersForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(userBean.user.customersForModifiedBy_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/customer/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserBanksForCreatedBy" value="Banks For Created By:"/>
			<h:dataTable id="userBeanUserBanksForCreatedBy" styleClass="data-table" value="#{forgeview:asList(userBean.user.banksForCreatedBy)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Account Number"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Branch"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBranch" value="#{_item.branch}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Beneficiary Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserPhoneNos1" value="Phone Nos_1:"/>
			<h:dataTable id="userBeanUserPhoneNos1" styleClass="data-table" value="#{forgeview:asList(userBean.user.phoneNos_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Phone No"/>
					</f:facet>
					<h:link outcome="/phoneNo/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPhoneNo" value="#{_item.phoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserBanksForModifiedBy" value="Banks For Modified By:"/>
			<h:dataTable id="userBeanUserBanksForModifiedBy" styleClass="data-table" value="#{forgeview:asList(userBean.user.banksForModifiedBy)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Account Number"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Branch"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBranch" value="#{_item.branch}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Beneficiary Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserBanksForCreatedBy1" value="Banks For Created By_1:"/>
			<h:dataTable id="userBeanUserBanksForCreatedBy1" styleClass="data-table" value="#{forgeview:asList(userBean.user.banksForCreatedBy_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Account Number"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Branch"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBranch" value="#{_item.branch}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Beneficiary Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserBanksForModifiedBy1" value="Banks For Modified By_1:"/>
			<h:dataTable id="userBeanUserBanksForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(userBean.user.banksForModifiedBy_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemName" value="#{_item.name}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Account Number"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Branch"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBranch" value="#{_item.branch}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Beneficiary Name"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/bank/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="userBeanUserStocksForCreatedBy1" value="Stocks For Created By_1:"/>
			<h:dataTable id="userBeanUserStocksForCreatedBy1" styleClass="data-table" value="#{forgeview:asList(userBean.user.stocksForCreatedBy_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Table Id"/>
					</f:facet>
					<h:link outcome="/stock/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemTableId" value="#{_item.tableId}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel value="Is Disabled:"/>
			<h:outputText styleClass="#{userBean.user.isDisabled ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
			<h:outputLabel value="In Sales:"/>
			<h:outputText styleClass="#{userBean.user.inSales ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>